import 'package:freezed_annotation/freezed_annotation.dart';

part 'contribution_get_contribution_list_request.g.dart';
part 'contribution_get_contribution_list_request.freezed.dart';

@freezed
class ContributionGetContributionListRequest
    with _$ContributionGetContributionListRequest {
  const factory ContributionGetContributionListRequest({
    @JsonKey(name: 'contribution_id') required String contributionId,
    @JsonKey(name: 'num') required String pageSize,
    @JsonKey(name: 'pg') required String page,
  }) = _ContributionGetContributionListRequest;

  factory ContributionGetContributionListRequest.fromJson(
          Map<String, dynamic> json) =>
      _$ContributionGetContributionListRequestFromJson(json);
}
